package com.fafa.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * 启动类
 *
 * @author Sire
 * @version 1.0
 * @date 2022-02-01 15:32
 */
@SpringBootApplication
// 为了使用service里的swagger配置（所以需要组件扫描，本微服务也引入了servcie）
@ComponentScan(basePackages = "com.fafa")
// 注册到Nacos
@EnableDiscoveryClient
// 开启feign（远程服务调用）
@EnableFeignClients(basePackages = "com.fafa")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }

}
